<?xml version="1.0" encoding="UTF-8"?>
<rows>
<%
  i=0
  @projs4ThisWeek.each do | project |
  i=i-1
%>
  end
  <row id="<%= i -%>">
    <cell style="color: #a60000; font-family: arial; font-style: oblique"  type="ro"><%=  project.name %></cell>
    <cell type="ro"/>
    <cell type="ro"/>
    <cell type="ro"/>
    <cell type="ro"/>
    <cell type="ro"/>
    <cell type="ro"/>
    <cell type="ro"/>
    <cell type="ro"/>
    <cell type="ro"/>
    <cell type="ro"/>

  </row>

  <%  project.tasks.each do |t| %>
    <%  t.week_time_sheets.each do |wts| %>
      <% if wts.start_date==@sd &&  wts.submit==1 %>
      <row id="<%= wts.id -%>">
        <cell><%=  t.name       -%></cell>
        <cell><%=  t.percentage -%></cell>
        <cell xmlcontent="true"><%=  t.status -%>
          <option value="Nuevo">Nuevo</option>
          <option value="En proceso">En proceso</option>
          <option value="Completado">Completado</option>
        </cell>
        <cell><%=  wts.monday_time    -%></cell>
        <cell><%=  wts.tuesday_time   -%></cell>
        <cell><%=  wts.wednessday_time -%></cell>
        <cell><%=  wts.thursday_time -%></cell>
        <cell><%=  wts.friday_time   -%></cell>
        <cell><%=  wts.saturday_time -%></cell>
        <cell><%=  wts.sunday_time -%></cell>
        <cell><%=  wts.sunday_time.to_i + wts.saturday_time.to_i + wts.friday_time.to_i + wts.thursday_time.to_i +  wts.wednessday_time.to_i + wts.tuesday_time.to_i + wts.monday_time.to_i -%></cell>
      </row>
      <% end %>
    <% end %>
  <% end %>
<% end %>
</rows>